#pragma once
#include "afxwin.h"


// CViewHex dialog

class CViewHex : public CDialog
{
	DECLARE_DYNAMIC(CViewHex)

public:
	CViewHex(CWnd* pParent = NULL);   // standard constructor
	virtual ~CViewHex();
	BYTE * m_data;
	DWORD m_datalen;

// Dialog Data
	enum { IDD = IDD_VWHEX };

public:
	CEdit m_edit;
	CBrush m_br;

public:
	static CString FmtHex(PBYTE data, DWORD datalen);

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBnClickedSaveas();
	DECLARE_MESSAGE_MAP()
};
